home *** CD-ROM | disk | FTP | other *** search
/ SOHO - Exploring the Sun - 2003 Update / SOHO - Exploring the Sun - 2003 Update.iso / pc / data / main.dcr / scripts_17.ls < prev    next >
Encoding:
Text File  |  2003-02-25  |  1.4 KB  |  55 lines

  1. on LiveRollOverMM chn, mask
  2.   global MainMode
  3.   if rollOver(mask) then
  4.     if the movieRate of sprite chn <> 1 then
  5.       set the movieRate of sprite chn to 1
  6.       if MainMode = 0 then
  7.         set the movieRate of sprite 11 to 0
  8.       end if
  9.     end if
  10.   else
  11.     if the movieRate of sprite chn <> 0 then
  12.       set the movieRate of sprite chn to 0
  13.       if MainMode = 0 then
  14.         set the movieRate of sprite 11 to 1
  15.       end if
  16.     end if
  17.   end if
  18. end
  19.  
  20. on LiveRollOver chn, maskchn, mode
  21.   global MainMode
  22.   if mode = 0 then
  23.     if the directToStage of member "sml_sun" = 0 then
  24.       set the directToStage of member "sml_sun" to 1
  25.     end if
  26.   end if
  27.   if rollOver(maskchn) then
  28.     if the movieRate of sprite chn <> 1 then
  29.       set the movieRate of sprite chn to 1
  30.     end if
  31.   else
  32.     if the movieRate of sprite chn <> 0 then
  33.       set the movieRate of sprite chn to 0
  34.     end if
  35.   end if
  36. end
  37.  
  38. on LiveRollOver2mask chn, maskchn, maskchn2, mode
  39.   global MainMode, min_duration
  40.   if mode = 0 then
  41.     if the directToStage of member "sml_sun" = 0 then
  42.       set the directToStage of member "sml_sun" to 1
  43.     end if
  44.   end if
  45.   if rollOver(maskchn) or rollOver(maskchn2) then
  46.     if the movieRate of sprite chn <> 1 then
  47.       set the movieRate of sprite chn to 1
  48.     end if
  49.   else
  50.     if (the movieRate of sprite chn <> 0) and (the duration of the member of sprite chn > min_duration) then
  51.       set the movieRate of sprite chn to 0
  52.     end if
  53.   end if
  54. end
  55.